
{include file="pageheader.htm"}

<script src="js/utils.js" ></script>

{if $isEditable}

<form method="post" action="?page=customer&action=save&id={$customer.customers_id}" name="theForm" >

{/if}

  <!-- start order view -->
  <div class="list-div" id="listDiv">					  

<table cellpadding="3" cellspacing="1">

  <tr>
    <td >{$lang.record_id}</td>
    <td >{$lang.customer_name}</td>
    <td >{$lang.customer_fname}</td>
    <td >{$lang.label_sex}</td>    
    <td> {$lang.label_age}</td>
  <tr>

  <tr>
    <td >{$customer.customers_id}
	<input type="hidden" name="member[customers_id]" value="{$customer.customers_id}" />  </td>
    <td >
	last name: <br />  
    <input type="text" name="member[customer_lname]" value="{$customer.customer_lname}"  /> <br />
    first name:<br />  <input type="text" name="member[customer_fname]" value="{$customer.customer_fname}"  />
	</td>

	<td>
	kana_last_name:<br />
          <input type="text" name="member[customer_lname_kana]" value="{$customer.customer_lname_kana}">
    kana_first_name:<br />
        <input type="text" name="member[customer_fname_kana]" value="{$customer.customer_fname_kana}" />
	</td>

    <td ><select name="member[customers_sex]" size="1" id="member[customers_sex]">
        <option value="1" {$customer.sex_male} >male</option>
        <option value="2" {$customer.sex_female} >female</option>
      </select></td>    
    <td><input type="text" name="member[customers_age]" value="{$customer.customers_age}" size="2" /></td>
  <tr>

<!-- address info -->

 <tr><td colspan=5> {$lang.address} </td></tr>

<tr>
<td>{$lang.country}: <br />
	<input type="text" name="member[country]" value="{$customer.defaddr.country}" /></td>
<td>{$lang.prefecture}:<br />
<input type="text" name="member[prefecture]" value="{$customer.defaddr.prefecture}" /></td>
	<td>
	{$lang.city}:<br />
	<input type="text" name="member[city]" value="{$customer.defaddr.city}" />
	</td>
	<td>
	{$lang.postcode}:<br />
	<input type="text" name="member[postcode]" value="{$customer.defaddr.postcode}" />    
	</td>
<td></td>
</tr>

  <tr><td colspan=5>
  {$lang.address}:<br />
	      <input type="text" style="width:80%" name="member[address]" value="{$customer.defaddr.address}" />
  </td></tr> 

  <tr>
    <td >{$lang.telephone}</td>
    <td >{$lang.faxnumber}</td>    
    <td >{$lang.memberno}</td>
	<td >{$lang.loginid}</td>
    <td> {$lang.mailaddr}</td>
  <tr>

  <tr>
    <td ><input type="text" name="member[phone_number]" value="{$customer.defaddr.phone_number}" /> </td>
    <td ><input type="text" name="member[fax_number]" value="{$customer.defaddr.fax_number}" /></td>
    <td ><input type="text" name="member[customer_no]" value="{$customer.customer_no}" /></td>
    <td ><input type="text" name="member[login_id]" value="{$customer.login_id}" /></td>    
    <td> <input type="text" name="member[customers_mail]" value="{$customer.customers_mail}" /></td>
  <tr>
 

</table>

</div>	

{if $isEditable }

<div class="list-div" id=idFormSubmit  >
<table>
	<tr><td align=center ><input type=submit name=submit value="{$lang.submit}" ></td></tr>
</table>
</div>

</form>
<!-- end person view -->

<br />

<!-- bof other info -->
<div class="list-div" id="other" >
<table>	  
    <tr>
      <th>{$lang.regenerate_password}：</th>
    </tr>

    <tr><td>

	  <form id="form2" name="form2" method="post" action="?page=customer&action=changepass&id={$customer.customers_id}" target="_self" >
		{$lang.new_password} &nbsp;
	    <input name="passwd1" type="password" id="passwd1" /> 
         {$lang.repeat_new_password} &nbsp;
         <input name="passwd2" type="password" id="passwd2" /> &nbsp;
          <input type="submit" name="Submit2" value="modify" />
      </form>        

	</td></tr>
  </table>
  
  <br />
  <table bordercolor="#FF3300" bgcolor="#FBF0C6">
    <tr>
      <td>
	  <div align="right">&gt;&gt; &nbsp;<a href="?page=customer&action=listorder&id={$customer.customers_id}"> {$lang.customer_orderlist}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="?page=customer">return customer list </a></div></td>
    </tr>
  </table>

</div>
 

{if $output_msg neq ''}

<div class="list-div" style="margin-bottom: 5px">
  <table cellpadding="3" cellspacing="1">
  <tr>  
  <td align=center >!!!{$output_msg}!!!</td>
  </tr>
</table>
</div>

{/if}

{/if}



{include file="pagefooter.htm"}